package cn.xiangxiang.service.impl;

import cn.xiangxiang.mapper.order.CagetoryReportMapper;
import cn.xiangxiang.pojo.order.CagetoryReport;
import cn.xiangxiang.service.order.CagetoryReportService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Service
public class CagetoryReportServiceImpl implements CagetoryReportService {

    @Autowired
    private CagetoryReportMapper cagetoryReportMapper;

    @Override
    public List<CagetoryReport> countCagetoryReport(LocalDate date) {
        return cagetoryReportMapper.countCagetoryReport(date);
    }

    @Override
    public List<Map> count1Category(String startDate, String endDate) {
        return cagetoryReportMapper.count1Category(startDate,endDate);
    }
}
